﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Presentation;

namespace TISSEAN
{
    
    public partial class MainWindow : Form
    {
        public Display display = new Display();

        public MainWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Estimates the time delayed mutual information of the data set
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mutualToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                Mutual();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }

        /// <summary>
        /// Estimates minimal embedding dimension using fale nearest neighbors algorithm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void falseNearestNeighboToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                FalseNearest();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
    }
}
